package iot.ht.controller.htuser.data;

import io.swagger.v3.oas.annotations.media.Schema;
import iot.core.data.BaseDto;
import iot.core.data.BasePageQto;
import iot.core.data.IdNameDto;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@Schema(name = "用户Dto",description = "")
public class HTUserDto extends BaseDto {


    @Schema(name = "账号",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  EName ="";

    @Schema(name = "姓名",description = "")
    @NotBlank(message = "姓名不能为空")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  Name ="";

    @Schema(name = "修改密码",description = "")
    private  boolean EditPWD ;

    @Schema(name = "密码",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  PWD ="";

    @Schema(name = "性别",description = "男、女")
    @Size(min =0,max = 100,message = "长度范围0-100")
    private  String  Sex ="";

    @Schema(name = "出生日期",description = "")
    private  Date  Birthday ;

    @Schema(name = "职务",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  ZW ="";

    @Schema(name = "邮箱",description = "")
    @Size(min =0,max = 100,message = "长度范围0-100")
    private  String  Email ="";

    @Schema(name = "手机号",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  Mobile ="";

    @Schema(name = "住址",description = "")
    @Size(min =0,max = 100,message = "长度范围0-100")
    private  String  Address ="";

    @Schema(name = "备注",description = "")
    private  String  Memo ="";

    @Schema(name = "照片",description = "")
    private  String  Url ="";

    @Schema(name = "创建日期",description = "")
    private  Date  Crt_DT ;

    @Schema(name = "创建人编号",description = "")
    private  Long  Crt_UId =0L;

    @Schema(name = "所属机构",description = "")
    private  Long  Crt_DId =0L;

    @Schema(name = "修改日期",description = "")
    private Date Edt_DT ;

    @Schema(name = "创建人编号",description = "")
    private  String  Crt_UName ="";

    @Schema(name = "所属机构",description = "")
    private  String  Crt_DName ="";

    @Schema(name = "状态",description = "启用、停用")
    @Size(min =0,max = 100,message = "长度范围0-100")
    private  String  State ="";

    @Schema(name = "RoleList",description = "")
    private List<IdNameDto> RoleList=new ArrayList<>();


}
